package com.cluster.user.util;

import cn.hutool.core.io.file.FileAppender;
import cn.hutool.core.io.file.FileReader;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class Multiply5 {
    public static void main(String[] args) {
        FileReader fileReader = new FileReader("C:\\Users\\admin\\Desktop\\620\\620_ref");
        List<String> fileContent1 = new ArrayList<>();
        List<String> strings = fileReader.readLines();
        for (String string : strings) {
            String str = string.split("=")[0];
            String vaule = string.split("=")[1];
            int integer = Integer.parseInt(vaule);
            int result = integer * 5;
            fileContent1.add(str+"="+ result);
        }

        FileAppender appender = new FileAppender(new File("C:\\Users\\admin\\Desktop\\620\\result\\0.txt"), 16, true);
        for (String string : fileContent1) {
            appender.append(string);
            appender.flush();
            appender.toString();
        }

    }
}
